package com.example.freeengine.wallpaper.fragment;

import android.os.Parcel;
import android.os.Parcelable;


/**
 * @author Terry Deng
 */
public class PictureInfo implements Parcelable {

    private String path;

    public PictureInfo(){}

    protected PictureInfo(Parcel in) {
        path = in.readString();
    }

    public static final Creator<PictureInfo> CREATOR = new Creator<PictureInfo>() {
        @Override
        public PictureInfo createFromParcel(Parcel in) {
            return new PictureInfo(in);
        }

        @Override
        public PictureInfo[] newArray(int size) {
            return new PictureInfo[size];
        }
    };

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(path);
    }
}
